#include <QCoreApplication>
#include <QTENetwork/JNTPSocket>
#include <QHostAddress>
#include <QDebug>

int main(int argc, char *argv[])
{
	QCoreApplication a(argc, argv);

	QTE::JNTPSocket sock/*(QHostAddress("ntp.ntsc.ac.cn"))*/;

	QObject::connect(&sock, &QTE::JNTPSocket::received, [](const QDateTime &dateTime)
	{
		qDebug() << "---------------------" << dateTime;
	});

	sock.start();

	return a.exec();
}
